package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class PowerFunction implements NumericValueFunction {

    private int beginIndex;
    private int endIndex;
    private NumericValueExpression numericValueExpressionBase;
    private NumericValueExpression numericValueExpressionExponent;

    public PowerFunction(int beginIndex,
                         int endIndex,
                         NumericValueExpression numericValueExpressionBase,
                         NumericValueExpression numericValueExpressionExponent) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.numericValueExpressionBase = numericValueExpressionBase;
        this.numericValueExpressionExponent = numericValueExpressionExponent;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public NumericValueExpression getNumericValueExpressionBase() {
        return numericValueExpressionBase;
    }

    public NumericValueExpression getNumericValueExpressionExponent() {
        return numericValueExpressionExponent;
    }

}
